package com.hiwhitley.himei.contract.model;

import com.hiwhitley.himei.contract.FindMoreContract;
import com.hiwhitley.himei.entity.FindMore;
import com.hiwhitley.himei.network.RetrofitFactory;
import com.hiwhitley.himei.network.service.OpenEyesService;

import java.util.List;

import rx.Observable;

/**
 * Created by hiwhitley on 2016/9/24.
 */

public class FindMoreModel implements FindMoreContract.Model{
    private static OpenEyesService mOpenEyesService;

    public FindMoreModel() {
        mOpenEyesService = RetrofitFactory.getOpenEyesService();
    }


    @Override
    public Observable<List<FindMore>> getFindMores(String url) {
        return mOpenEyesService.getFindMores(url);
    }
}
